package com.gfwy.dao;

import java.util.List;

import com.gfwy.vo.News;

public interface INewsDao {
	public boolean doCreate(News news) throws Exception;
	public List<News> findAll(String keyWord,int startIndex, int count, boolean picnews) throws Exception;
	public boolean doUpdate(News news) throws Exception;
	public boolean doUpdateT(News news) throws Exception;
	public int count(String type) throws Exception;
	public News findById(int nid) throws Exception;
	public List<News> findReferences(int nid, int size, String type) throws Exception;
	public boolean doDel(int nid) throws Exception;
	public List<News> findByType(String keyWord,int startIndex, int count, String type) throws Exception;
	public int count(String type, String keyWord) throws Exception;
}
